package com.hfi.dao;

import com.hfi.model.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ChangLiang
 * @date 2019/5/21
 */
public interface EmployeeMapperDynamicSQL {

    List<Employee> getEmpsByConditionIf(Employee employee);

    List<Employee> getEmpsByConditionTrim(Employee employee);

    List<Employee> getEmpsByConditionChoose(Employee employee);

    void updateEmp(Employee employee);

    // 查询员工id在给定集合中的
    List<Employee> getEmpsByConditionForeach(@Param("ids")List<Integer> ids);

    // 批量插入
    void addEmps(@Param("emps")List<Employee> emps);

    List<Employee> getEmpsTestInnerParameter(Employee employee);
}
